package com.pig4cloud.pig.village.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 拥军拥属
 * @author Will Hu
 * @date 2022.3.26
 */
@Getter
public enum Army {
	KOREAN_WAR(0, "抗美援朝军人"),
	RETIRED(1, "退伍军人"),
	ACTIVE(2, "现役军人"),
	DISABLED(3, "伤残军人"),
	BENEFITS_FOR_ENTITLED(4, "重点优抚对象"),;

	Army(int code, String description) {
		this.code = code;
		this.description = description;
	}

	@EnumValue
	@JsonValue
	private final int code;
	private final String description;
}